//
//  WBDemoViewController.swift
//  AdaoWeibo
//
//  Created by 孙道慧 on 2017/4/1.
//  Copyright © 2017年 maihaoche. All rights reserved.
//

import UIKit

class WBDemoViewController: WBBaseViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        title = "第\(navigationController?.childViewControllers.count ?? 0)页"
       setUpUI()
    }
    
    // 下一步
    @objc fileprivate func nextAction() {
        let vc = WBDemoViewController()
        navigationController?.pushViewController(vc, animated: true)
    }
}


extension WBDemoViewController {
    override func setUpUI() {
        super.setUpUI()
        navigationItem.rightBarButtonItem = UIBarButtonItem(title: "下一步", target: self, action: #selector(nextAction))
    }
}
